package com.main.hotel.service;

import com.alipay.api.AlipayApiException;
import com.main.hotel.entity.Customer;
import com.main.hotel.entity.OrderInfo;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


public interface CustomerService {
  public Customer getCustomerById(Integer id);
  public int addCustomer(Customer customer);
  Customer confirmCustomer(String phone,String password);
 public  int addOrder(OrderInfo orderInfo);
  public String cancelOrder(String order_id) throws IOException, AlipayApiException;
  public int updateCustomer(String password,String phone);
}
